<%--

  User: 刘军海
  Date: 2014/11/13 16:42
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="st" tagdir="/WEB-INF/tags" %>

<table class="easyui-datagrid" id="dg"
       data-options="url:'/user/sys/qmdManager?act=q&queryId=20141107000000000004',fit:true,pagination:true,singleSelect:true,selectOnCheck:false,checkOnSelect:false,sortName:'20141107000000000008',sortOrder:'asc',idField:'20141107000000000002'">
    <thead data-options="frozen:true">
    <tr>
        <th data-options="field:'opt'">操作</th>
        <th data-options="field:'desId',checkbox:true">选择</th>
        <th data-options="field:'20141107000000000002',sortable:true,width:60,align:'center',halign:'center'">ID</th>
    </tr>
    </thead>
    <thead>
    <tr>
        <th data-options="field:'20141107000000000003',sortable:true,align:'center',halign:'center'">角色名称</th>
        <th data-options="field:'20141107000000000004',sortable:true,align:'center',halign:'center'">显示顺序</th>
        <th data-options="field:'20141107000000000005',sortable:true,align:'center',halign:'center'">备注</th>
        <th data-options="field:'20141107000000000006',sortable:true,align:'center',halign:'center'">是否系统定义</th>
        <th data-options="field:'20141107000000000007',sortable:true,align:'center',halign:'center'">增加人</th>
        <th data-options="field:'20141107000000000008',sortable:true,align:'center',halign:'center'">增加时间</th>
    </tr>
    </thead>
</table>
<script>var $dg = $('#dg');
function getdgId() {
    var row = $dg.datagrid('getSelected');
    if (row) {
        return row['20141107000000000002'];
    } else {
        return '';
    }
}</script>
<script>var $dg = $('#dg');
function getdgId() {
    var row = $dg.datagrid('getSelected');
    if (row) {
        return row['20141107000000000002'];
    } else {
        return '';
    }
}</script>